function action1(success, fail) {
	setTimeout(() => {
		console.dir("action1")
		success()
	}, 1000)
}

function action2(success, fail) {
	setTimeout(() => {
		console.dir("actioin2")
	}, 1000)
}

function action3(success, fail) {
	setTimeout(() => {
		console.dir("action3")
	}, 1000)
}

new Promise((resolve, reject) => {
  console.dir(1024)
	action1(() => {
		resolve()
	})

}).then(() => {
	action2()

}).then((resolve, reject) => {
	action3()

}).catch((err) => {

})
